package com.wqtz.chechai.adapter;

import android.widget.ImageView;

import com.orhanobut.logger.Logger;
import com.wqtz.chechai.R;
import com.wqtz.chechai.base.lvbaseadapter.LvBaseAdapter;
import com.wqtz.chechai.base.lvbaseadapter.ViewHolder;
import com.wqtz.chechai.base.rebaseadapter.MyHolder;
import com.wqtz.chechai.base.rebaseadapter.RecyclerAdapter;

import java.util.List;

/**
 * 项目名称： CheChai
 * 创建人 : Liberation
 * 创建时间: 2016/12/27 15:34
 */

public class CarBranHotAdapter extends RecyclerAdapter<String> {


	public CarBranHotAdapter(int rsId, List<String> data) {
		super(rsId, data);
	}

	@Override
	public int itemType(int position) {
		return 0;
	}

	@Override
	public void onBindMyViewHolder(MyHolder holder, int position, List<String> data) {
		Logger.e(data.size()+"");
		holder.setText(R.id.tv_carmodel,data.get(position));
		ImageView imageView = (ImageView) holder.getView(R.id.iv_car_img);
		imageView.setImageResource(R.mipmap.car_default_head);
	}
}
